﻿using Newtonsoft.Json;

namespace LService.Net.Net.Rest
{
    /// <summary>
    /// Class RestBodyResult.
    /// </summary>
    /// <typeparam name="ContentType">The type of the content type.</typeparam>
    /// <typeparam name="ParamType">The type of the parameter type.</typeparam>
    public class RestBodyResult<ContentType, ParamType>
    {
        /// <summary>
        /// Gets or sets the content.
        /// </summary>
        /// <value>The content.</value>
        [JsonProperty("content")]
        public ContentType content { get; set; }

        /// <summary>
        /// Gets or sets the parameter.
        /// </summary>
        /// <value>The parameter.</value>
        [JsonProperty("param")]
        public ParamType param { get; set; }

        /// <summary>
        /// Gets or sets the code.
        /// </summary>
        /// <value>The code.</value>
        [JsonProperty("code")]
        public object code { get; set; }

        /// <summary>
        /// The syn code
        /// </summary>
        [JsonProperty("synCode")]
        public string synCode = string.Empty;
    }
}
